home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 103 / XENIATGM103.iso / Shareware / GoLive 5.0 / MM9.Cab / F1401_edit.asp.9B3B646D_CB56_4EAE_BAB7_3E7E8E41A649 < prev    next >
Text File  |  2000-08-17  |  6KB  |  123 lines

  1. <!-- #INCLUDE VIRTUAL="/golive/config/include/utils.runtime5.asp" -->
  2. <!-- #INCLUDE VIRTUAL="/golive/config/include/ado.runtime5.asp" -->
  3. <!-- #INCLUDE VIRTUAL="/golive/config/actions/ado.actions5.asp" -->
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  5. <html>
  6.  
  7.     <head>
  8.         <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  9.         <meta name="generator" content="Adobe GoLive 5">
  10.         <title>Edit Feature</title>
  11.         <script language="JavaScript">
  12. <!---
  13. function TestIfNumber( InputField )
  14. {
  15.     if( isNaN( Number( InputField.value ))){
  16.         alert( "This input field requires number." );
  17.         InputField.focus()
  18.     }
  19. }
  20. //--->
  21. </script>
  22.         <%'Dynamic Link
  23.            set Features_InformationRecordSet = CreateObject("ADODB.RecordSet")
  24.            Features_InformationRecordSet.Open "select * from Features", ConnectString("Magazine")
  25.            set Features_Information = WrapRecordSet(Features_InformationRecordSet, "ID")
  26.            Features_Information.Move GetRecordIndex() - 1
  27.         %><meta name="site-config-URL" content="http://localhost/golive/config/">
  28.     </head>
  29.  
  30.     <body bgcolor="white">
  31.         <form method="post" action='/golive/config/actions/ado.actions5.asp?<%=URLArgs()%>'>
  32.         <table border="0">
  33.             <tr>
  34.                 <td valign="top">
  35.                     <table border="0" cellpadding="3" cellspacing="0">
  36.                         <tr>
  37.                             <td valign="top" bgcolor="#666699"><font color="white" face="arial,helvetica,sans-serif"><b>Title</b></font></td>
  38.                             <td valign="top" bgcolor="#ccccff"><input type="text" name='Title' value='<%=Features_Information.Value("Title")%>' size="29"></td>
  39.                             <td valign="top"><img src="images/spacer.gif" height="5" width="5"></td>
  40.                         </tr>
  41.                         <tr>
  42.                             <td colspan="3"><img src="images/spacer.gif" height="1" width="50"></td>
  43.                         </tr>
  44.                         <tr>
  45.                             <td valign="top" bgcolor="#666699"><font color="white" face="arial,helvetica,sans-serif"><b>Intro </b></font></td>
  46.                             <td valign="top" bgcolor="#ccccff"><textarea rows="5" cols="25" name='Introduction' wrap="virtual"><%=Server.HTMLEncode(Features_Information.Value("Introduction"))%></textarea></td>
  47.                             <td valign="top"><img src="images/spacer.gif" height="5" width="5"></td>
  48.                         </tr>
  49.                         <tr>
  50.                             <td colspan="3"><img src="images/spacer.gif" height="1" width="50"></td>
  51.                         </tr>
  52.                         <tr>
  53.                             <td valign="top" bgcolor="#666699"><font color="white" face="arial,helvetica,sans-serif"><b>Story</b></font></td>
  54.                             <td valign="top" bgcolor="#ccccff"><textarea rows="24" cols="25" name='Story' wrap="virtual"><%=Server.HTMLEncode(Features_Information.Value("Story"))%></textarea></td>
  55.                             <td valign="top"><img src="images/spacer.gif" height="5" width="5"></td>
  56.                         </tr>
  57.                     </table>
  58.                 </td>
  59.                 <td valign="top">
  60.                     <table border="0" cellpadding="3" cellspacing="0">
  61.                         <tr>
  62.                             <td valign="top" bgcolor="#666699"><font color="white" face="arial,helvetica,sans-serif"><b>Author</b></font></td>
  63.                             <td valign="top" bgcolor="#ccccff"><input type="text" name='Author' value='<%=Features_Information.Value("Author")%>' size="24"></td>
  64.                         </tr>
  65.                         <tr>
  66.                             <td colspan="2"><img src="images/spacer.gif" height="1" width="1"></td>
  67.                         </tr>
  68.                         <tr>
  69.                             <td valign="top" bgcolor="#666699"><font color="white" face="arial,helvetica,sans-serif"><b>Priority</b></font></td>
  70.                             <td valign="top" bgcolor="#ccccff"><input type="text" size="8" name='Priority' value='<%=Features_Information.Value("Priority")%>' onblur="TestIfNumber( this )"></td>
  71.                         </tr>
  72.                         <tr>
  73.                             <td colspan="2"><img src="images/spacer.gif" height="1" width="1"></td>
  74.                         </tr>
  75.                         <tr>
  76.                             <td valign="top" nowrap bgcolor="#666699"><font color="white" face="arial,helvetica,sans-serif"><b>Image</b></font></td>
  77.                             <td valign="top" bgcolor="#ccccff"><input type="text" name='ImageURL' value='<%=Features_Information.Value("ImageURL")%>' size="24" onblur="document.storyImage.src= imageURL.value"></td>
  78.                         </tr>
  79.                         <tr height="13">
  80.                             <td height="13" colspan="2" align="left" bgcolor="#ccccff"><img height="5" width="50" src="images/spacer.gif"></td>
  81.                         </tr>
  82.                         <tr>
  83.                             <td colspan="2" bgcolor="#ccccff" align="left"><img src='<%=Features_Information.Value("ImageURL")%>' width="280" height="170" name="storyImage" hspace="5"><br>
  84.                                 <p>
  85.                                 <input type="submit" name="$SubmitChanges" value="Submit Changes"  <%=SetupADOAction(Features_Information, false)%>>
  86.                                 <input type="submit" name="$DeleteRecord" value="Delete"  <%=SetupADOAction(Features_Information, false)%>>
  87.                                 <input type="submit" name="$DuplicateRecord" value="Duplicate"  <%=SetupADOAction(Features_Information, false)%>>
  88.                             </td>
  89.                         </tr>
  90.                     </table>
  91.                     <p>
  92.                     <hr>
  93.                     <p>
  94.                     <font face="verdana" size="1"><b>
  95.                     <a <%=LinkToFirstRecord(Features_Information)%>> FIRST</a>
  96.                      | 
  97.                     <a <%=LinkToPreviousRecord(Features_Information)%>> <- PREVIOUS</a>
  98.                      | 
  99.                     <a <%=LinkToNextRecord(Features_Information)%>>NEXT -></a>
  100.                      | 
  101.                     <a <%=LinkToLastRecord(Features_Information)%>>LAST</a>
  102.                      | 
  103.                     <a href='edit.asp?RECORD_KEY=$newRecord'>NEW</a> | <%=Features_Information.AbsolutePosition%> of <%=Features_Information.RecordCount%></b></font></td>
  104.             </tr>
  105.         </table>
  106.         </form>
  107.     </body>
  108.  
  109. </html>
  110. <% if 0 then %>
  111. <!-- Mock Content
  112.    Features_Information:Title {}
  113.    Features_Information:Introduction {}
  114.    Features_Information:Story {}
  115.    Features_Information:Author {}
  116.    Features_Information:Priority {}
  117.    Features_Information:ImageURL {images/ducky(big).jpg}
  118.    Features_Information:ImageURL {images/ducky(big).jpg}
  119.    Features_Information:$recordIndex {3}
  120.    Features_Information:$recordCount {15}
  121. -->
  122. <% end if %>
  123.